<?php

require_once ('library/Zend/View/Helper/Abstract.php');

class Zend_View_Helper_ContentType extends Zend_View_Helper_Abstract {
	public function contentType($typeValue){
		$intValue=(int)$typeValue;
		if(0==$intValue){
			return "<a class='news' href='http://www.taoxiuyu.cn/wenzhang/newslist'>新闻</a>";
		}
		if(1==$intValue){
			return "<a class='digest' href='http://www.taoxiuyu.cn/wenzhang/digestlist'>文摘</a>";
		}
		if(2==$intValue){
			return "<a class='knowledge'  href='http://www.taoxiuyu.cn/wenzhang/knowledgelist'>知识</a>";
		}
	}
}

?>